<!--suppress ALL -->
<template>
  <div>
    <router-view></router-view>
  </div>
</template>

<script>

  export default {
    name: 'IndexPage',
    components: {},
    data () {
      return {}
    },
    methods: {
      goPage () {
        if (this.$store.state.loginState === '1') {
          this.$router.push({
            name: 'HomePage',
            query: {param: this.$route.query.param}
          })
        } else {
          this.$router.push('/UaaLoginPage')

        }
      }

    },

    mounted: function () {
      this.$nextTick(function () {
        this.goPage()
      })
    }

  }

</script>
